import { BaseWindow } from "../../../../component/window/BaseWindow";
import { ILayer } from "../../../../mvc/interfaces/ILayer";
import { Language } from "../../../../../extend/language/Language";
import { ChatPublicCrossHintIcon } from "./ChatPublicCrossHintIcon";
import { WindowEvent } from "../../../../component/window/WindowEvent";
import { ObjCreate } from "../../common/ObjCreate";
import { ChatPrivatePanel } from "../chatPrivate/ChatPrivatePanel";
import { GScrollPane } from "../../../../../com/mui/controls/GScrollPane";
import { ScrollPolicy } from "../../../../../fl/controls/ScrollPolicy";
import { GBox } from "../../../../../com/mui/containers/GBox";
import { GBoxDirection } from "../../../../../com/mui/containers/globalVariable/GBoxDirection";
import { FacePanel } from "../selectPanel/FacePanel";
import { ColorSelector } from "../selectPanel/ColorSelector";
import { TimeButton } from "../../common/button/TimeButton";
import { FilterConst } from "../../../../component/gconst/FilterConst";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { ImagesConst } from "../../../resource/ImagesConst";
import { TilePanel } from "../../equipment/TilePanel";
import { ChatPublicCrossCellRenderer } from "./ChatPublicCrossCellRenderer";
import { PageSelecter } from "../../common/pageSelect/PageSelecter";
import { Global } from "../../../../../com/gengine/global/Global";
import { ChatPublicCrossSearchPlayerWindow } from "./ChatPublicCrossSearchPlayerWindow";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
import { ChatArea } from "../ChatArea";
import { ResManager } from "../../../../common/ResManager";
import { KeyCode } from "../../../../../com/gengine/keyBoard/KeyCode";
import { SPublicMiniPlayer } from "../../../../../Message/Public/SPublicMiniPlayer";
import { EntityUtil } from "../../../scene/layer/utils/EntityUtil";
import { PlayerMiniInfo } from "../../../model/PlayerMiniInfo";
import { ObjectPool } from "../../../../../com/gengine/utils/pools/ObjectPool";
import { ChatItemData } from "../chatViewData/ChatItemData";
import { ChatMessageWorking } from "../chatViewData/ChatMessageWorking";
import { FaceAuthority } from "../data/FaceAuthority";
import { ChatCellData } from "../chatViewData/ChatCellData";
import { ChatItem } from "../chatPanel/ChatItem";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { DataProvider } from "../../../../../fl/data/DataProvider";
import { GButton } from "../../../../../com/mui/controls/GButton";
import { GTextInput } from "../../../../../com/mui/controls/GTextInput";
import { GCheckBox } from "../../../../../com/mui/controls/GCheckBox";
import { Scene } from "../../../../../ChatArea/Scene";
import { _color } from "../../../../../this/_color";
type int = number;
//class ChatPublicCrossWindow
    
    export  class ChatPublicCrossWindow extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(arg1);
            this._txArr = [];
            this._onLineArr = [];
            this.setSize(538, 461);
            this.titleHeight = 26;
            title = Language.getString(70803);
            this.addListeners();
            this._icon = new ChatPublicCrossHintIcon();
            this.addEventListener(WindowEvent.SHOW, this.onThisShow);
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._btnMinimize1 = ObjCreate.createGButton("", 480, 8, 19, 19, this, "MinimizeButton");
            this._areaChat = new Object /* flash.display.Sprite */();
            this._areaChat.x = 19;
            this._areaChat.y = 40;
            this._areaChat.mouseEnabled = false;
            this.addChild(this._areaChat);
            ObjCreate.createBg(0, 0, 340, 256, this._areaChat);
            this._chatBox = new ChatPrivatePanel();
            this._chatBox.width = 322;
            this._chatBox.height = 256;
            this._areaChat.addChild(this._chatBox);
            this._scrollPane = new GScrollPane();
            this._scrollPane.width = 339;
            this._scrollPane.height = 253;
            this._scrollPane.y = 3;
            this._scrollPane.styleName = "GScrollPane";
            this._scrollPane.verticalScrollPolicy = ScrollPolicy.AUTO;
            this._scrollPane.horizontalScrollPolicy = ScrollPolicy.OFF;
            this._scrollPane.source = this._chatBox;
            this._areaChat.addChild(this._scrollPane);
            this._scrollPane.update();
            this._btnFace = ObjCreate.createGButton("", 25, 301, 18, 17, this, "ExpressionChatButton");
            this._areaFuns = new GBox();
            this._areaFuns.x = 46;
            this._areaFuns.y = 298;
            this._areaFuns.direction = GBoxDirection.HORIZONTAL;
            this.addChild(this._areaFuns);
            this._btnColorSelector = ObjCreate.createGButton("", 0, 0, 25, 23, this._areaFuns, "ColorSelector");
            this._btnBrush = ObjCreate.createGButton("", 0, 0, 25, 23, this._areaFuns, "Brush");
            var loc1=new Object /* flash.display.Sprite */();
            this._areaFuns.addChild(loc1);
            this._btnFace.toolTipData = "<font color=\'#ffffff\'>" + Language.getString(40609) + "</font>";
            this._btnColorSelector.toolTipData = "<font color=\'#ffffff\'>" + Language.getString(40610) + "</font>";
            this._btnBrush.toolTipData = "<font color=\'#ffffff\'>" + Language.getString(40613) + "</font>";
            this._facePanel = new FacePanel();
            this._facePanel.x = 29;
            this._facePanel.y = 97;
            this._colorSelector = new ColorSelector();
            this._colorSelector.x = 56;
            this._colorSelector.y = 176;
            this._areaInput = new Object /* flash.display.Sprite */();
            this._areaInput.x = 19;
            this._areaInput.y = 323;
            this._areaInput.mouseEnabled = false;
            this.addChild(this._areaInput);
            this._tiChat = ObjCreate.createGTextInput(0, 0, 340, 100, this._areaInput);
            this._tiChat.maxChars = 50;
            this._tiChat.mouseFocusEnabled = false;
            this._tiChat.textField.wordWrap = true;
            this.setInputTextFormat();
            this._cbShowIcon = ObjCreate.createCheckBox(Language.getString(40614), 15, 101, 140, 28, this._areaInput);
            this._btnMiniSize2 = ObjCreate.createGButton(Language.getString(40615), 190, 103, 70, 22, this._areaInput);
            this._btnSend = new TimeButton(5, false);
            this._btnSend.width = 70;
            this._btnSend.height = 22;
            this._btnSend.styleName = "Button";
            this._btnSend.x = 268;
            this._btnSend.label = Language.getString(40616);
            this._btnSend.y = 103;
            this._btnSend.textField.filters = [FilterConst.nameGlowFilter];
            this._areaInput.addChild(this._btnSend);
            this._areaRight = new Object /* flash.display.Sprite */();
            this._areaRight.x = 362;
            this._areaRight.y = 40;
            this._areaRight.mouseEnabled = false;
            this.addChild(this._areaRight);
            var loc2=new GTextFormat(FontUtil.songtiName, 14, 15788607);
            loc2.align = flash.text.TextFormatAlign.CENTER;
            ObjCreate.createBg(0, 0, 157, 408, this._areaRight);
            ObjCreate.createBg(-1, -3, 160, 35, this._areaRight, "RbListHeader");
            this._tfListTitle = ObjCreate.createTextField("", 0, 5, 159, 20, this._areaRight, loc2);
            this._allSeverTx = ObjCreate.createTextField("", 19, 28, 30, 20, this._areaRight, GlobalStyle.textFormat5);
            this._curSeverTx = ObjCreate.createTextField("", 59, 28, 30, 20, this._areaRight, GlobalStyle.textFormat1);
            this._outSeverTx = ObjCreate.createTextField("", 99, 28, 30, 20, this._areaRight, GlobalStyle.textFormat1);
            this._allSeverTx.htmlText = Language.getString(70804);
            this._curSeverTx.htmlText = Language.getString(70805);
            this._outSeverTx.htmlText = Language.getString(70806);
            this._txArr = [this._allSeverTx, this._curSeverTx, this._outSeverTx];
            this._allSeverTx.addEventListener(flash.events.TextEvent.LINK, this.onTxClickHandler);
            this._curSeverTx.addEventListener(flash.events.TextEvent.LINK, this.onTxClickHandler);
            this._outSeverTx.addEventListener(flash.events.TextEvent.LINK, this.onTxClickHandler);
            this._curSeverShow = this._allSeverTx.name;
            ObjCreate.createBg(3, 49, 150, 2, this._areaRight, ImagesConst.SplitLine);
            this._memberTileList = new TilePanel();
            this._memberTileList.setSize(155, 334);
            this._memberTileList.x = 2;
            this._memberTileList.rowHeight = 21;
            this._memberTileList.columnWidth = 154;
            this._memberTileList.verticalGap = 1;
            this._memberTileList.setStyle("cellRenderer", ChatPublicCrossCellRenderer);
            this._memberTileList.y = 54;
            this._memberTileList.scrollPolicy = ScrollPolicy.OFF;
            this._areaRight.addChild(this._memberTileList);
            this._pageSelecter = new PageSelecter();
            this._pageSelecter.mode = PageSelecter.SingleMode;
            this._pageSelecter.move(9, 384);
            this._pageSelecter.addEventListener(flash.events.Event.CHANGE, this.onUpPageSelecter);
            this._areaRight.addChild(this._pageSelecter);
            this._findBtn = ObjCreate.createGButton(Language.getString(40323), 98, 384, 48, 20, this._areaRight);
            this._findBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onFindBtnClick);
            return;
        }

        /* internal  */onFindBtnClick(arg1: Object /* flash.events.Event */): void
        {
            if (this._searchWindow) 
            {
                if (this._searchWindow.parent) 
                {
                    this._searchWindow.hide();
                }
                else 
                {
                    this._searchWindow.x = (Global.stage.stageWidth - this._searchWindow.width) / 2;
                    this._searchWindow.y = (Global.stage.stageHeight - this._searchWindow.height - 100) / 2;
                    this._searchWindow.show();
                }
            }
            else 
            {
                this._searchWindow = new ChatPublicCrossSearchPlayerWindow();
                this._searchWindow.x = (Global.stage.stageWidth - this._searchWindow.width) / 2;
                this._searchWindow.y = (Global.stage.stageHeight - this._searchWindow.height - 100) / 2;
                this._searchWindow.show();
            }
            return;
        }

        public updatePlayerInfo(arg1: Array<any>): void
        {
            if (this._searchWindow) 
            {
                this._searchWindow.showSearchResults(arg1);
            }
            return;
        }

        protected onTxClickHandler(arg1: Object /* flash.events.TextEvent */): void
        {
            var loc3=null;
            var loc1=arg1.target as Object /* flash.text.TextField */;
            loc1.setTextFormat(GlobalStyle.textFormat5);
            var loc2=this._txArr.length;
            var loc4=0;
            while (loc4 < loc2) 
            {
                if ((loc3 = this._txArr[loc4] as Object /* flash.text.TextField */) != loc1) 
                {
                    loc3.setTextFormat(GlobalStyle.textFormat1);
                }
                ++loc4;
            }
            this._curSeverShow = loc1.name;
            this.onUpPageSelecter();
            return;
        }

        /* internal  */onThisShow(arg1: WindowEvent): void
        {
            this.requestData();
            if (this._scrollPane) 
            {
                this.timeOutUpdate();
            }
            return;
        }

        public /* override */ set visible(arg1: Boolean)
        {
            super.visible = arg1;
            if (arg1 == true) 
            {
                this.timeOutUpdate();
                this.requestData();
            }
            return;
        }

        /* internal  */requestData(): void
        {
            var loc1=new Date();
            if (!this._lastRequestDate || loc1.time - this._lastRequestDate.time > this.MinRequestDataTime) 
            {
                this._lastRequestDate = loc1;
                Dispatcher.dispatchEvent(new DataEvent(EventName.ChatPublicCrossGetSecenePlayersList));
            }
            return;
        }

        public ChatPublicCrossWindow.get icon(): ChatPublicCrossHintIcon
        {
            return this._icon;
        }

        /* internal  */addListeners(): void
        {
            this._btnMinimize1.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnMinimizeClick);
            this._btnMiniSize2.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnMinimizeClick);
            this._btnSend.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnSendClick);
            this._btnFace.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnFaceClick);
            this._btnColorSelector.addEventListener(flash.events.MouseEvent.CLICK, this.onColorSelector);
            this._btnBrush.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnBrushClick);
            this._tiChat.addEventListener(flash.events.KeyboardEvent.KEY_DOWN, this.keyHandler);
            this._facePanel.addCall(this.selectFace);
            this._colorSelector.addCall(this.selectColor);
            return;
        }

        protected onUpPageSelecter(arg1: Object /* flash.events.Event */=null): void
        {
            var loc1=null;
            if (this._onLineArr.length > 0) 
            {
                loc1 = this.getCurTypeArr(this._onLineArr, this._curSeverShow);
                this.updateCurList(loc1);
            }
            return;
        }

        /* internal  */selectColor(arg1: uint): void
        {
            if (this._colorSelector.parent) 
            {
                this._colorSelector.parent.removeChild(this._colorSelector);
                this.removeStateCancelPanelEvent();
            }
            this._color = arg1;
            this.setInputTextFormat();
            return;
        }

        /* internal  */removeStateCancelPanelEvent(): void
        {
            if (!(this._colorSelector.parent || this._facePanel.parent)) 
            {
                Global.stage.removeEventListener(flash.events.MouseEvent.CLICK, this.canselPanelsHandler);
            }
            return;
        }

        /* internal  */canselPanelsHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=arg1.target as Object /* flash.display.DisplayObject */;
            if (!(loc1 == this._btnColorSelector) && !(loc1 == this._colorSelector) && (!loc1.parent || !(loc1.parent == this._colorSelector))) 
            {
                if (this._colorSelector.parent) 
                {
                    this._colorSelector.parent.removeChild(this._colorSelector);
                }
            }
            if (!(loc1 == this._btnFace) && !(loc1 == this._facePanel) && !this._facePanel.contains(loc1)) 
            {
                if (this._facePanel.parent) 
                {
                    this._facePanel.parent.removeChild(this._facePanel);
                    this._facePanel.stopAllFace();
                }
            }
            return;
        }

        /* internal  */onBtnMinimizeClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.visible = false;
            return;
        }

        /* internal  */onBtnSendClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.sendMsg();
            return;
        }

        /* internal  */sendMsg(): void
        {
            var sentText: string;

            var loc1;
            sentText = this._tiChat.text;
            if (sentText && this._btnSend.enabled) 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.ChatSend, {"content": sentText, "area": Scene, "color": _color}));
                this._btnSend.trigger();
                with ({}) 
                {
                };
                
#error('pushwith') {}
                .flash.utils.setTimeout(
#error('pushwith') {}
                .a = (): void
                {
                    _tiChat.text = "";
                    return;
                }, 10)
            }
            return;
        }

        /* internal  */onBtnFaceClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            ResManager.instance.LoadFace();
            if (this._facePanel.parent) 
            {
                this._facePanel.stopAllFace();
                this._facePanel.parent.removeChild(this._facePanel);
                this.removeStateCancelPanelEvent();
            }
            else 
            {
                this.addChild(this._facePanel);
                this._facePanel.startAllFace();
                this.addStageCancelPanelEvent();
            }
            return;
        }

        /* internal  */addStageCancelPanelEvent(): void
        {
            Global.stage.addEventListener(flash.events.MouseEvent.CLICK, this.canselPanelsHandler);
            return;
        }

        /* internal  */onColorSelector(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._colorSelector.parent) 
            {
                this._colorSelector.parent.removeChild(this._colorSelector);
                this.removeStateCancelPanelEvent();
            }
            else 
            {
                this.addChild(this._colorSelector);
                this.addStageCancelPanelEvent();
            }
            return;
        }

        public clearChatInfo(): void
        {
            this.onBtnBrushClick();
            return;
        }

        /* internal  */onBtnBrushClick(arg1: Object /* flash.events.MouseEvent */=null): void
        {
            this._chatBox.reset();
            if (!this.isHide) 
            {
                this.timeOutUpdate();
            }
            return;
        }

        /* internal  */selectFace(arg1: Object): void
        {
            if (this._facePanel.parent) 
            {
                this._facePanel.parent.removeChild(this._facePanel);
                this.removeStateCancelPanelEvent();
            }
            this._tiChat.appendText("/" + arg1.toString() + " ");
            this._tiChat.setFocus();
            this._tiChat.setSelection(this._tiChat.text.length, this._tiChat.text.length);
            return;
        }

        /* internal  */keyHandler(arg1: Object /* flash.events.KeyboardEvent */): void
        {
            if (arg1.keyCode == KeyCode.ENTER) 
            {
                this.sendMsg();
            }
            return;
        }

        public updateMemberList(arg1: Array<any>): void
        {
            var loc4=null;
            var loc1=0;
            this._onLineArr = [];
            var loc2=0;
            while (loc2 < arg1.length) 
            {
                if ((loc4 = arg1[loc2] as SPublicMiniPlayer).online == 1) 
                {
                    ++loc1;
                    this._onLineArr.push(loc4);
                }
                ++loc2;
            }
            this._tfListTitle.text = Language.getStringByParam(70807, this._onLineArr.length);
            var loc3=this.getCurTypeArr(this._onLineArr, this._curSeverShow);
            this.updateCurList(loc3);
            this._memberTileList.drawNow();
            this._memberTileList.validateNow();
            return;
        }

        /* internal  */getCurTypeArr(arg1: Array<any>, arg2: string): Array<any>
        {
            var loc4=null;
            var loc5=0;
            var loc1=[];
            var loc2=[];
            var loc3=[];
            if (arg2 == this._allSeverTx.name) 
            {
                this._pageSelecter.maxPage = Math.ceil(arg1.length / 15);
                return arg1;
            }
            loc5 = 0;
            while (loc5 < arg1.length) 
            {
                loc4 = arg1[loc5] as SPublicMiniPlayer;
                if (EntityUtil.isSameServerByRole(loc4.entityId)) 
                {
                    loc2.push(loc4);
                }
                else 
                {
                    loc3.push(loc4);
                }
                ++loc5;
            }
            if (arg2 == this._curSeverTx.name) 
            {
                return loc2;
            }
            return loc3;
        }

        /* internal  */setInputTextFormat(): void
        {
            var loc1=new GTextFormat(FontUtil.songtiName, 12, this._color);
            loc1.leading = 3;
            this._tiChat.setStyle("textFormat", loc1);
            this._tiChat.setStyle("textPadding", 5);
            return;
        }

        public addChatItem(arg1: PlayerMiniInfo, arg2: Date, arg3: string, arg4: Array<any>, arg5: Array<any>, arg6: int=0, arg7: Boolean=false): void
        {
            var loc5=null;
            var loc1;
            (loc1 = ObjectPool.getObject(ChatItemData)).type = ChatMessageWorking.getChatTypeByAreaName(ChatArea.Union);
            var loc2=FaceAuthority.getPlayerAuthority(arg1);
            var loc3=new Vector.<ChatCellData>();
            if (arg6 == 0) 
            {
                arg6 = 16645629;
            }
            if (arg7) 
            {
                loc3 = loc3.concat(ChatMessageWorking.getDiceCellData(arg3, arg6));
            }
            else 
            {
                loc3 = loc3.concat(ChatMessageWorking.getCellDatas(arg3, arg4, arg5, arg6, 12, loc2));
            }
            loc1.cellVector = loc3;
            var loc4;
            (loc4 = ObjectPool.getObject(ChatItem)).init(loc1.getContentElement(), 280, 22);
            if (EntityUtil.isSameServerByRole(arg1.entityId)) 
            {
                loc5 = HTMLUtil.addColor(Language.getString(70801), "#FF00FF");
            }
            else 
            {
                loc5 = HTMLUtil.addColor("[" + EntityUtil.getProxyName(arg1.entityId) + "]", "#FF8040");
            }
            loc5 = loc5 + (" " + arg1.playerName);
            this._chatBox.addChatItem(loc4, loc5, arg2);
            loc1.dispose();
            if (!this.isHide) 
            {
                this.timeOutUpdate();
            }
            return;
        }

        public ChatPublicCrossWindow.get isShowWindow(): Boolean
        {
            return !this._cbShowIcon.selected;
        }

        public set isShowWindow(arg1: Boolean)
        {
            this._cbShowIcon.selected = !arg1;
            return;
        }

        public clearAndHide(): void
        {
            this._chatBox.reset();
            this.hide();
            return;
        }

        /* internal  */timeOutUpdate(): void
        {
            flash.utils.setTimeout(this.reSetScrollPanePosition, 100);
            return;
        }

        public reSetScrollPanePosition(): void
        {
            if (this._scrollPane && Global.stage.contains(this._scrollPane)) 
            {
                this._chatBox.validateNow();
                this._scrollPane.validateNow();
                this._scrollPane.update();
                this._scrollPane.verticalScrollPosition = this._scrollPane.maxVerticalScrollPosition;
            }
            return;
        }

        public static get instance(): ChatPublicCrossWindow
        {
            if (!ChatPublicCrossWindow._instance) 
            {
                ChatPublicCrossWindow._instance = new ChatPublicCrossWindow();
            }
            return ChatPublicCrossWindow._instance;
        }

        /* internal  */updateCurList(arg1: Array<any>): void
        {
            this._pageSelecter.maxPage = Math.ceil(arg1.length / this._pagesize);
            var loc1=(this._pageSelecter.currentPage - 1) * this._pagesize;
            var loc2=this._pageSelecter.currentPage * this._pagesize > arg1.length ? arg1.length : this._pageSelecter.currentPage * this._pagesize;
            var loc3=arg1.slice(loc1, loc2);
            this._memberTileList.dataProvider = new DataProvider(loc3);
            return;
        }

        /* internal */ /* const */MinRequestDataTime: int=5000;

        /* internal */ /* var */_icon: ChatPublicCrossHintIcon;

        /* internal */ /* var */_curSeverShow: string;

        /* internal */ /* var */_lastRequestDate: Date;

        /* internal */ /* var */_btnMinimize1: GButton;

        /* internal */ /* var */_areaChat: Object /* flash.display.Sprite */;

        /* internal */ /* var */_areaFuns: GBox;

        /* internal */ /* var */_areaInput: Object /* flash.display.Sprite */;

        /* internal */ /* var */_areaRight: Object /* flash.display.Sprite */;

        /* internal */ /* var */_scrollPane: GScrollPane;

        /* internal */ /* var */_chatBox: ChatPrivatePanel;

        /* internal */ /* var */_btnFace: GButton;

        /* internal */ /* var */_btnColorSelector: GButton;

        /* internal */ /* var */_btnBrush: GButton;

        /* internal */ /* var */_facePanel: FacePanel;

        /* internal */ /* var */_colorSelector: ColorSelector;

        /* internal */ /* var */_tiChat: GTextInput;

        /* internal */ /* var */_cbShowIcon: GCheckBox;

        /* internal */ /* var */_btnMiniSize2: GButton;

        /* internal */ /* var */_btnSend: TimeButton;

        /* internal */ /* var */_memberTileList: TilePanel;

        /* internal */ /* var */_allSeverTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_curSeverTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_outSeverTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_txArr: Array<any>;

        /* internal */ /* var */_pageSelecter: PageSelecter;

        /* internal */ /* var */_pagesize: int=15;

        /* internal */ /* var */_searchWindow: ChatPublicCrossSearchPlayerWindow;

        /* internal */ /* var */_findBtn: GButton;

        /* internal */ /* var */_tfListTitle: Object /* flash.text.TextField */;

        /* internal */ /* var */_color: uint=16645629;

        /* internal */ static /* var */_instance: ChatPublicCrossWindow;

        /* internal */ /* var */_onLineArr: Array<any>;
    }
